Northwoods.GoWPF 2.2.4 Assembly
Load<NodeDataType>(XContainer,XName) Method

this must be a TreeModelNodeData<NodeKey> with a public zero-argument constructor
the XContainer holding all of the data
the name of each XElement holding node data
Given a Linq for XML XContainer holding node data, replace this model's NodesSource collection with a collection of new node data.
Syntax
Public Overloads Sub Load(Of NodeDataType As {New, TreeModelNodeData(Of NodeKey)})( _
   ByVal root As XContainer, _
   ByVal nodename As XName _
) 
public void Load<NodeDataType>( 
   XContainer root,
   XName nodename
)
where NodeDataType: new(), TreeModelNodeData<NodeKey>

Parameters

root
the XContainer holding all of the data
nodename
the name of each XElement holding node data

Type Parameters

NodeDataType
this must be a TreeModelNodeData<NodeKey> with a public zero-argument constructor
Remarks

All of the changes to this model are performed within a transaction.

This does not set the IsModified property to false. You may wish to do so, depending on your application requirements. You might also wish to clear the UndoManager.

Requirements
See Also

Reference

TreeModel<NodeType,NodeKey> Class
TreeModel<NodeType,NodeKey> Members
Overload List

 

 


© Northwoods Software 2017. All Rights Reserved.

Send Feedback